# a = [1,0.02,'long',(5,6,7),[8,9,10]]
# print(a[2])

#增加
# student = ["张三","李四","王五"]
# student.append("赵六") #在数组末尾处添加
# student.insert(0,"赵六") #在指定位置添加
# print(student)

#修改
# student[1] = "龙龙"
# print(student)

#删除
# student.pop(0)#传入指定的下标，删除元素
# print(student)

# student = ["张三","李四","王五"]
# student.remove("王五")#删除指定的元素
# del student[-1]
# print(student)

# student = ["张三","李四","王五"]
# student.pop()
# print(student)

# student = ["张三","李四","王五"]
# student.clear()#清空列表
# print(student)

# student = ["张三","李四","王五","王五"]
# student_count = student.count("王五")
# print(student_count)

# student_index = student.index("李四")
# print(student_index)

# student = ["张三","李四","王五"]
# # user = ["一一","二二"]
# # student.extend(user)
# # print(student)
# student.reverse()
# print(student)

# numbers = [9,23,52323,235,235,2,346,3463,36]
# numbers.sort(reverse=True)#排序,默认是升序
# print(numbers)

student_info = [
    [1,'刘海洋','北京'],
    [2,'hzy','shanghai'],
    [3,'ljj','天津']
]#二维数组
student_info[0][-1] = '山东'
print(student_info)

# student_info2 = [
#     [1,'刘海洋','北京',['bmw','benz','audi'] ],
#     [2,'hzy','北京',['bmw','benz','audi']],
#     [3,'ljj','北京']
# ] #三维数组
# print(student_info2)